<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>

<script type="text/javascript" src="/lib/jquery-3.4.1.js"></script>
<script type="text/javascript">
	$(function(){	
		$('#btn').click(function(){
			var strAcnt = $('#account').val();
			var strPwd = $('#password').val();
			$.get("/ajax/login",{
				account: strAcnt,
				password: strPwd
				},function(result){
					if(result.status=="1"){
						window.location.href="/userManage/userList.html"
					}
					else{
						$('#pp').html("用户名或密码有误，请重新输入");
					}
				});  //get或者post方法
		});
	});
</script>
</head>
<body>
	<form >
		<p id="pp" style="color:red"></p>
		<input type="text" placeholder="  请输入手机号"  id="account" >
		<input type="password" placeholder="  请输入账号密码"  id="password"  >
		<input type="button"  id="btn" value="登录" >
	</form>
</body>
</html>